package com.yz.demo.service;

import com.retrofit.starter.annotation.RetrofitClient;
import com.yz.demo.model.Repos;
import retrofit2.Call;
import retrofit2.http.GET;
import retrofit2.http.Path;

import java.util.List;

/**
 * @author shanchong
 * @date 2019-07-10
 **/
@RetrofitClient(url = "https://api.github.com")
public interface DemoService {

    @GET(value = "/users/{user}/repos")
    Call<List<Repos>> resposList(@Path(value = "user") String user);

}
